package com.woniuxy.utils;

public class KeyUtil {

    /*
    * 参数1：对象
    * 参数2：方法名
    * 参数3：调用方法传入的参数
    *
    * */
    public static String generate(Object target, String method, Object... params) {
        StringBuilder sBuilder = new StringBuilder();
        sBuilder.append(target.getClass().getName());
        sBuilder.append(".");
        sBuilder.append(method);    //生成key
        for(Object object:params){
            sBuilder.append(".");
            sBuilder.append(object.toString());
        }
        return sBuilder.toString();
    }


}
